package com.toocms.jinjuhang.ui.mine.setting.agreement

import com.toocms.jinjuhang.R
import com.toocms.jinjuhang.BR
import com.toocms.jinjuhang.databinding.FgtSettingBinding
import com.toocms.jinjuhang.ui.base.BaseFgt
import com.toocms.tab.TooCMSApplication

class AgreementFgt : BaseFgt<FgtSettingBinding, AgreementModel>() {
    override fun onFragmentCreated() {

    }

    override fun getLayoutResId() = R.layout.fgt_agreement

    override fun getVariableId() = BR.agreementModel

    override fun viewObserver() {
        viewModel.titleSingleLiveEvent.observe(this){
            topBar.setTitle(it)
        }
    }

    override fun getViewModel()=AgreementModel(TooCMSApplication.getInstance(),arguments)
}